<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>用户详细页</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
        	location = '${ctx}/act/model/?pageNo='+n+'&pageSize='+s;
        }
		function upload(){
			document.getElementById("inputform").submit();
		}
	</script>
	<style type="text/css">
		.getMargin{
				margin:0 auto;
		}
	</style>
</head>
<body>
	<div class="getMargin">
		<form:form id="inputform" modelAttribute="user" action="${ctx }/owner/tenement/updateOwner" method="post">
		<table id="contentTable">
			
			<tr><td><label>姓名:</label></td><td><form:input path="name" type="text" value="${owners.name }" class="small input"/></td></tr>
			<tr><td><label>性别:</label></td><td><form:input path="sex" type="text" value="${owners.sex }" class="small input"/></td></tr>
			<tr><td><label>家庭成员:</label></td><td><form:input path="familyNum" type="text" value="${owners.familyNum }" class="small input"/></td></tr>
			<tr><td><label>联系电话:</label></td><td><form:input path="mobile" type="text" value="${owners.mobile }" class="small input"/></td></tr>
			<tr><td><label>所住楼宇:</label></td><td><form:input path="" type="text" value="${buildingName }" class="small input"/></td>
			<form:hidden path="id" value="${owners.id }"/>
			</tr>
			
			<tr><td><label>所住楼层:</label></td><td><form:input path="room.floor" type="text" value="${owners.room.floor }" class="small input"/></td></tr>
			<tr><td><label>所住房间:</label></td><td><form:input path="room.roomNum" type="text" value="${owners.room.roomNum }" class="small input"/></td></tr>
			<tr><td><label>登录账号:</label></td><td><form:input path="loginName" type="text" value="${owners.loginName }" class="small input"/></td></tr>	
			<tr><td><label>所剩余额:</label></td><td><form:input path="" readOnly="true" type="text" value="${owners.balance }" class="small input"/></td>
			<td><a href="${ctx }/owner/tenement/PayForm?id=${owners.id}"><font color="red">充值</font></a></td>
			</tr>
			<tr><td><input id="btnSubmit" class="btn btn-primary"  type="bottom" onclick="upload()" value="提交"/></td></tr>
		</table>
		</form:form>
	</div>
</body>
</html>
